Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

88
Views
estaba haciendo tres en raya y me confundí ¿cómo puedo dar valor "x", "0" a todas las filas y columnas
 <div class="container"> <div class="box bt-0 bl-0"><span class="text"></span></div> <div class="box bt-0"> <span class="text"></span></div> <div class="box bt-0 br-0"><span class="text"></span></div> <div class="box bl-0"> <span class="text"></span></div> <div class="box"> <span class="text"></span></div> <div class="box br-0"> <span class="text"></span></div> <div class="box bl-0 bb-0"><span class="text"></span></div> <div class="box bb-0"> <span class="text"></span></div> <div class="box br-0 bb-0"><span class="text"></span></div> </div>

Estaba haciendo tres en raya y me confundí, ¿cómo puedo dar el valor "x", "0" a todas las filas y columnas?

Este es el js que he aplicado.

 let allboxes=document.querySelectorAll(".box") for (i=0;i<allboxes.length;i++) allboxes[i].addEventListener("click",()=>{ $("div.text").click(function(){ $(this).closet() }) })
about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!